home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
oglsnoop.z
/
oglsnoop
Wrap
Text File
|
1998-10-20
|
10KB
|
199 lines
ooooggggllllssssnnnnoooooooopppp((((1111GGGG)))) ooooggggllllssssnnnnoooooooopppp((((1111GGGG))))
NNNNAAAAMMMMEEEE
oglsnoop - magnify and report on the screen under the mouse pointer
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ooooggggllllssssnnnnoooooooopppp
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_o_g_l_s_n_o_o_p is a program for viewing the color, depth and stencil values of
windows on the desktop. It displays these values graphically as well as
numerically in its window. _o_g_l_s_n_o_o_p can be used to determine the Visual
and Colormap that a given window is using. It can view both the Front and
Back buffers of Double Buffered windows and allows you to visualize the
Depth and Stencil Buffers using a grey scale display.
_o_g_l_s_n_o_o_p has an Information dialog to view information about the window
currently being watched and an Advanced dialog for controlling the visual
mapping of depth values to grey scale color ranges. Most key information
is displayed in the _o_g_l_s_n_o_o_p title bar for quick reference.
The _o_g_l_s_n_o_o_p title bar displays the following information....
ZZZZoooooooommmm FFFFaaaaccccttttoooorrrr
A number defining the magnification factor of the image.
BBBBuuuuffffffffeeeerrrr TTTTyyyyppppeeee
Color Index shows CI and True Color shows RGBA.
SSSSiiiinnnngggglllleeee////DDDDoooouuuubbbblllleeee
SINGLE for single buffered visuals and DOUBLE for double
buffered ones.
VVVViiiissssuuuuaaaallll IIIIDDDD Visual Id as a hexadecimal number. These equate to the
numbers in glxinfo's output.
CCCCuuuurrrrrrrreeeennnntttt BBBBuuuuffffffffeeeerrrr
Blank indicates the Color buffer, D for Depth and S for
Stencil.
FFFFrrrroooonnnntttt////BBBBaaaacccckkkk
F for the front buffer and B for back. If the current
window isn't double buffered then nothing will be
displayed here.
In the bottom of the _o_g_l_s_n_o_o_p window is a bar that displays the values
for the current pixel. When _o_g_l_s_n_o_o_p is following the mouse then these
values represent the pixel at the current pointer position. When you have
grabbed a window then these values represent the pixel at the currently
grabbed window position. The represented values are X and Y coordinates,
Red Green Blue and Alpha color values in hex, Depth value in the range
0.0 -> 1.0, Stencil value in the range 0 -> maximum stencil value, and
the Color Index value. All values shown are for the current pixel. The X
and Y coordinates are relative to the Upper Left Corner of the display
PPPPaaaaggggeeee 1111
ooooggggllllssssnnnnoooooooopppp((((1111GGGG)))) ooooggggllllssssnnnnoooooooopppp((((1111GGGG))))
when in Normal Mode and the Lower Left Corner of the grabbed window when
in Grab Mode.
The MMMMooooddddeeee menu contains a radio box for selecting the current buffer to
display. Available choices are Color, Depth and Stencil. Although values
are read from all buffers at the current pixel position only one of the
buffers can be displayed visually at a time.
The OOOOppppttttiiiioooonnnn menu contains controls that affect what is currently
displayed. The SSSSnnnnoooooooopppp toggle turns on/off the display of the current pixel
values. The AAAABBBBGGGGRRRR toggle reverses the display of color values from RGBA to
ABGR. The GGGGrrrriiiidddd toggle brings up a grid that is overlaid on the _o_g_l_s_n_o_o_p
window. This can be useful for counting pixels. The IIIInnnnffffoooorrrrmmmmaaaattttiiiioooonnnn............ button
brings up an Information dialog that displays more information about the
current window. The AAAAddddvvvvaaaannnncccceeeedddd............ button brings up an Advanced dialog that
allows you to modify the Depth and Stencil ranges being displayed.
The Advanced dialog is only useful when viewing the Depth or Stencil
buffers. When you are viewing a Depth or Stencil buffer the range of
values is mapped to the color range to display grey scale equivalents of
the values. When the automatic toggles are set the ranges are calculated
on the fly. If the automatic toggle is not set then you can change the
way that depth or stencil values are mapped to color values. The Minimum
sliders control the percent of the available ranges that map to white
(ie. since Depth always ranges for 0.1 to 1.0 a Minimum Depth Setting of
90 would mean that depth values of 0.9 map to white ). The Maximum
sliders control the percent of the available ranges that map to black
(ie. a Maximum Depth setting of 100 would mean that depth values of 1.0
would map to black ). The scale is then linearly mapped from the Minimum
to the Maximum along the given color resolution. If the Minimum and
Maximum sliders are reversed (.ie Minimum is set to 100 and Maximum is
set to 90 ), then the grey scale values are reversed (ie. a Depth value
of 1.0 now maps to White and a Depth value of 0.9 maps to Black ) or Near
things are dark and far things are light.
The VVVViiiieeeewwww menu contains controls that affect how information is read. The
ZZZZoooooooommmm++++++++ and ZZZZoooooooommmm-------- buttons increase and decrease the zoom factor by one
each time. The current zoom factor is displayed in the title bar. The
GGGGrrrraaaabbbb WWWWiiiinnnnddddoooowwww button activates the grab mechanism which allows you to
select a window to watch regardless of where the mouse pointer is. When
in Grab Mode if the mouse is placed over the _o_g_l_s_n_o_o_p window then you can
use the arrow keys to navigate around the currently grabbed window. The X
and Y coordinates displayed will be relative to the Lower Left Corner of
the grabbed window. To leave Grab Mode and go back to Normal Mode just
click on the Grab Window Button again ( it we be labeled as Ungrab Window
if you are in Grab Mode ). If _o_g_l_s_n_o_o_p is unable to grab a window
successfully it will remain in Normal Mode. The last button on the VVVViiiieeeewwww
menu is the RRRReeeeaaaadddd BBBBaaaacccckkkk BBBBuuuuffffffffeeeerrrr button. When this toggle is set then the
back buffer is read instead of the front on double buffered windows.
PPPPaaaaggggeeee 2222
ooooggggllllssssnnnnoooooooopppp((((1111GGGG)))) ooooggggllllssssnnnnoooooooopppp((((1111GGGG))))
Along with the menus most functions can be accessed with the keyboard.
The following is the list of keymappings...
esc quit
1-9 set zoom factor
0 set zoom factor to 10
d set zoom factor to 30
m go to next display mode (ie. Color -> Depth -> Stencil )
b toggle back buffer reading on/off
g grab/ungrab window
s toggle snoop mode
r reverse color display ABGR -> RGBA
+ increase zoom factor by 1
- decrease zoom factor by 1
The _o_g_l_s_n_o_o_p window can be resized to display a larger or smaller area.
When the _o_g_l_s_n_o_o_p window is not iconified it can use up to 30% of the
available cpu, so it might be wise to iconify it when you aren't using
it.
NNNNOOOOTTTTEEEESSSS
_o_g_l_s_n_o_o_p only views the top most window under the current mouse position.
Often this window is an overlay which is above the main graphics window.
If a window is using a Visual which isn't OpenGL compatible then _o_g_l_s_n_o_o_p
will not be able to grab this window and likewise won't be able to read
depth, stencil or Color Index values from it.
If a window is using a Visual that has Depth and Stencil buffers
associated with it then _o_g_l_s_n_o_o_p will display depth and stencil values
even though these values may be garbage.
When first entering a window or after moving a grabbed window you may
need to cause the window to be redrawn for the proper values to be read
from the window.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
glxinfo(1g)
PPPPaaaaggggeeee 3333